package com.chuantou.yuba.api.to;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

public class AdTO implements Parcelable {
	@SerializedName("id")
	private long id;
	@SerializedName("ad_name")
	private String name;
	@SerializedName("ad_link")
	private String link;
	@SerializedName("ad_code")
	private String image;

	public AdTO() {
	}

	public AdTO(Parcel source) {
		// TODO 需要时再序列化
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// 需要时再序列化
	}

	public static final Creator<AdTO> CREATOR = new Creator<AdTO>() {

		@Override
		public AdTO[] newArray(int size) {
			return new AdTO[size];
		}

		@Override
		public AdTO createFromParcel(Parcel source) {
			return new AdTO(source);
		}
	};

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

}
